package com.blb.community.service.impl.zy;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community.mapper.ZyVisitorMapper;
import com.blb.community.pojo.zy.ZyVisitor;
import com.blb.community.service.zy.ZyVisitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author sun12
 * @description 针对表【zy_visitor(访客邀请 )】的数据库操作Service实现
 * @createDate 2023-11-20 20:41:27
 */
@Service
public class ZyVisitorServiceImpl extends ServiceImpl<ZyVisitorMapper, ZyVisitor>
        implements ZyVisitorService {

    @Autowired
    private ZyVisitorMapper zyVisitorMapper;

    @Override
    public Page<ZyVisitor> getPage(Page page, String visitorName, String visitorDate, String visitorPhoneNumber, Long communityId) {
        return zyVisitorMapper.selectPage(page, visitorName, visitorDate, visitorPhoneNumber, communityId);
    }

    @Override
    public List<ZyVisitor> getByCreateById(Long createById) {
        return zyVisitorMapper.selectByCreateById(createById);
    }
}




